[slug].vue 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <script lang='ts' setup>
  2. import { useCommonStore } from '@/stores/modules/common'
  3. const commonStore = useCommonStore()
  4. const list = [
  5. {
  6. id: 1,
  7. title: 'Stationary & Office Supplies',
  8. description: 'Discover bestsellers and fresh arrivals tailored to your niche.',
  9. img: 'https://picsum.photos/560/310',
  10. pdfUrl: 'https://static.ejetselection.com/temp/导入模板2222_1736660213488.xlsx',
  11. type: 'download',
  12. },
  13. {
  14. id: 2,
  15. title: 'Stationary & Office Supplies',
  16. description: 'Discover bestsellers and fresh arrivals tailored to your niche.',
  17. img: 'https://picsum.photos/560/310',
  18. pdfUrl: 'https://static.ejetselection.com/temp/baozhen_1748937135247.pdf',
  19. type: 'request',
  20. },
  21. {
  22. id: 3,
  23. title: 'Stationary & Office Supplies',
  24. description: 'Discover bestsellers and fresh arrivals tailored to your niche.',
  25. img: 'https://picsum.photos/560/310',
  26. pdfUrl: 'https://static.ejetselection.com/temp/baozhen_1748937135247.pdf',
  27. type: 'request',
  28. },
  29. {
  30. id: 4,
  31. title: 'Stationary & Office Supplies',
  32. description: 'Discover bestsellers and fresh arrivals tailored to your niche.',
  33. img: 'https://picsum.photos/560/310',
  34. pdfUrl: 'https://static.ejetselection.com/temp/baozhen_1748937135247.pdf',
  35. type: 'request',
  36. },
  37. ]
  38. const { openLoginAndDownloadModal } = useLoginAndDownLoadModal()
  39. async function clickLoginAndDownload(item: any) {
  40. try {
  41. commonStore.setDownloadCatalog(item)
  42. const { status } = await openLoginAndDownloadModal()
  43. if (status)
  44. location.reload()
  45. }
  46. catch (error) {
  47. console.log(error)
  48. }
  49. }
  50. </script>
  51. <template>
  52. <div>
  53. <div class=" bg-#0F0820">
  54. <div class="header w-1200-auto text-center flex items-center justify-center h-600px bg-no-repeat bg-center" style="background-image: url('https://picsum.photos/420/420')">
  55. <h1 class="text-58px fw-800 text-#fff ls-2 custom-title-font">
  56. STATIONARY & OFFICE SUPPLIES
  57. </h1>
  58. </div>
  59. </div>
  60. <div class="py-120px w-1200-auto text-center">
  61. <h2 class="text-36px fw-800 text-#333 !mb-20px custom-title-font">
  62. Our Latest Product <span class="custom-title-bg04">Catalogs</span>
  63. </h2>
  64. <div class="text-#999 text-22px mb-40px">
  65. Discover bestsellers and fresh arrivals tailored to your niche.
  66. </div>
  67. <div class="grid grid-cols-2 gap-64px text-left">
  68. <div v-for="item in list" :key="item.id">
  69. <business-categories-comp-item :item="item" @select="clickLoginAndDownload" />
  70. </div>
  71. </div>
  72. </div>
  73. <common-block-catalogs />
  74. <common-block-blog class="!pb-0" />
  75. <AppFooter />
  76. </div>
  77. </template>
  78. <style lang='less' scoped>
  79. .header{
  80. background-position: 50% 75%;
  81. }
  82. </style>